#!/bin/bash

clear

echo "Iniciando equipo"

cd bin

limite=7
i=1;

while [[ $limite -ge $i ]]
do
     echo "Jugador $i"
     gnome-terminal -e "./jugador" &
     let i=$i+1
     sleep 1
done

limite=3
i=1;

while [[ $limite -ge $i ]]
do
     let f=$i+7
     echo "Defensa $f"
     gnome-terminal -e "./defensa" &
     let i=$i+1
     sleep 1
done

echo "Portero"
gnome-terminal -e "./portero"

exit 0


